package template.impl;

import javax.annotation.PostConstruct;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import template.AbstractPayOpenTemplate;


@Service
public class KQPayOpenTemplate extends AbstractPayOpenTemplate {
	
	private static final Logger LOGGER = LoggerFactory.getLogger(KQPayOpenTemplate.class);

	@Override
	public void check(Object object) {
		LOGGER.info("快钱开户<KQPayOpenTemplate>-check");
	}

	@Override
	public void transform(Object object) {
		LOGGER.info("快钱开户<KQPayOpenTemplate>-transform");
	}

	@Override
	public void assignment(Object object) {
		LOGGER.info("快钱开户<KQPayOpenTemplate>-assignment");
	}
	
	@PostConstruct
	public void postConstruct(){
		LOGGER.info("快钱开户<KQPayOpenTemplate>-init");
		AbstractPayOpenTemplate.put(getType(), this);
	}

	private String getType() {
		return "KQ_PAY";
	}

}
